package com.example.spring.service;

import com.example.spring.dao.OrderDao;
import org.springframework.context.ApplicationEventPublisher;

/**
 * ClassName:OrderService
 * Package:com.example.spring.service
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-14:48
 * @Version:v1.0
 */
public class OrderService {

    private OrderDao orderDao;

    public void setOrderDao(OrderDao orderDao) {
        this.orderDao = orderDao;
    }

    //生成订单的业务方法
    public void generate(){
        orderDao.insert();
    }
}
